<% form_for([@attack, @army]) do |f| %>
  <%= f.error_messages %>

  <div id="hero">
    <h2><%= f.label 'Held' %></h2>
    <%= select("army", "hero_id", Hero.find(:all).collect {|p| [p.name, p.id]}) %>
  </div>
  <div id="beute">
    <h2>Beute</h2>
    <table>
      <tr>
        <th>
          <%= f.label :essenzen %>
        </th>
        <th>
          <%= f.label :kristalle %>
        </th>
        <th>
          <%= f.label :kraftsteine %>
        </th>
        <th>
          <%= f.label :goldharz %>
        </th>
      </tr>
      <tr>
        <td>
          <%= f.text_field :essenzen, :id => 'number' %>
        </td>
        <td>
          <%= f.text_field :kristalle, :id => 'number' %>
        </td>
        <td>
          <%= f.text_field :kraftsteine, :id => 'number' %>
        </td>
        <td>
          <%= f.text_field :goldharz, :id => 'number' %>
        </td>
      </tr>
    </table>
  </div>
  <div id="create">
    <%= f.submit "Create" %>
  </div>
<% end %>